package org.scau.studentevaluation.client;

import org.scau.studentevaluation.entity.query.ActExistQuery;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName: AttendedStudentListClient
 * @Description: TODO
 * @Author: sunslikes
 * @Date: 2020/9/4 3:31
 * @Version: 1.0
 */
@FeignClient(value = "eureka-client-attendedstudentlist", fallback = AttendedStudentListClientHystrix.class)
public interface AttendedStudentListClient {
    /**
     *
     * 	通过actId、studentId从attendedstudentlist中获取actId（通过feign调用attendedstudentlist模块中判断指特定学生和活动的数据是否存在的方法）
     */
    @RequestMapping(value = "/attendedstudentlist/actExist", method = RequestMethod.GET)
    int ActExist(@RequestParam("actId") Long actId, @RequestParam("studentId") Long studentId);

}
